package com.demo.behavioral.visitor;

public class ResumeHandler implements Visitor {

	private int allNum;
	
	private int allPeiKingNum;
	
	public void visit(Resume resume) {
		allNum++; 
		if("北大".equals(resume.getUniversity())){
			allPeiKingNum++;
		}
	}
	
	public int getResumeNum(){
		return allNum;
	}
	
	//新增需求的修改
	public int getPeiKingNum(){
		return allPeiKingNum;
	}


}
